<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ page import="java.util.Date,java.text.*"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
	<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">
</head>
<%
int id=(Integer.parseInt(request.getParameter("id")));
session.setAttribute("id", request.getParameter("id"));
String name =(String)request.getAttribute("name");
String label=(String)request.getAttribute("label");
String identity =(String)request.getAttribute("identity");
String birthday =(String)request.getAttribute("birthday");
String descriptions =(String)request.getAttribute("descriptions");
%>
<body style="padding-top: 20px;" background="images/modify.jpg">

<div class="main">
  <form action="ModifyServlet" method="post" >
  <center>
<br>
<div class="container">
<div class="col-md-8 col-md-offset-2">
<div class="form-group">

</div>
<P>
<a href="main.jsp"> 返回主页面</a>
<h1>预案修改系统</h1><br>
		
<div class="form-group">
<label>预案名称</label>
<input type="text" class="form-control" name="name" value="<%=name%>"> 
</div>
					

<div class="form-group">
<tr>
<td>灾害类型</td>
<td><select name="label" class="form-control">
<%
if("地震".equals(label))
{%>
<option value="地震" selected>地震</option>
<%
}else{
%>
<option value="地震" >地震</option>
<%
}
%>
<%
if("火灾".equals(label)){
%>
<option value="火灾" selected>火灾</option>
<%}
else{ %>
<option value="火灾" >火灾</option>
<%
}
%>
<%
if("气象灾害".equals(label)){
%>
<option value="气象灾害" selected>气象灾害</option>
<%}
else{ %>
<option value="气象灾害" >气象灾害</option>
<%
}
%>
<%
if("环境灾害".equals(label)){
%>
<option value="环境灾害" selected>环境灾害</option>
<%}
else{ %>
<option value="环境灾害" >环境灾害</option>
<%
}
%>
</select>
</td>
</tr>
<br><br>
</div>


<div class="form-group">
<tr>
<td>适用人群</td>
<td><select name="identity" class="form-control">
<%
if("领导".equals(identity))
{%>
<option value="领导" selected>领导</option>
<%
}else{
%>
<option value="领导" >领导</option>
<%
}
%>
<%
if("老师".equals(identity)){
%>
<option value="老师" selected>老师</option>
<%}
else{ %>
<option value="老师" >老师</option>
<%
}
%>
<%
if("学生".equals(identity)){
%>
<option value="学生" selected>学生</option>
<%}
else{ %>
<option value="学生" >学生</option>
<%
}
%>
<%
if("其他人员".equals(identity)){
%>
<option value="其他人员" selected>其他人员</option>
<%}
else{ %>
<option value="其他人员" >其他人员</option>
<%
}
%>
</select>
</td>
</tr>
</div>
					
<div class="form-group">
<tr>
<td>发布日期</td>
<td>
<input name ="birthday"  class="form-control" value="<%=birthday%>">
</td>
</tr>
</div>



<div class="form-group">
<tr>
<td>描述</td>
<td><textarea name="descriptions" class="form-control"  rows="10" cols="36" wrap="physical"><%=descriptions %></textarea></td>
</tr>
</div>

<div class="form-group">
<button type="submit" class="btn btn-info">保存修改预案</button>
</div>   
<div class="form-group">
<button type="submit" class="btn btn-info"><a href="infor.jsp">返回</button>
</div> 
     
      
</center>  
   
  </form>
  </div>
</body>

	
</html>